import {
	createStore
} from 'vuex'

import Cart from '@/store/cart/index.js'
import Address from '@/store/address/index.js'
const store = createStore({
	state() {
		return {
			count: 0,
			cart: []
		}
	},
	mutations: {
		increment(state) {
			state.count++
		}
	},
	modules: {
		cart: Cart.cart,
		address: Address.address
	}
})

export default {
	store
}
